'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  //渲染数据
  router.post('/api/getList', controller.home.getList)

  //搜索title
  router.post('/api/search', controller.home.search)

  //搜索name
  router.post('/api/search1', controller.home.search1)

  //登录
  router.post('/api/login', controller.home.Login);

  //注册
  router.post('/api/register', controller.home.register)

  //详情
  router.post("/api/detail", controller.home.detail);

  //区域筛选
  router.post('/api/screening1', controller.home.screening1);

  //样式筛选
  router.post('/api/screening3', controller.home.screening3);

  //方位筛选
  router.post('/api/screening4', controller.home.screening4);

  router.post('/api/screening5', controller.home.screening5);

  router.post('/api/screening6', controller.home.screening6);

  //删除
  router.post('/api/delList', controller.home.delList)

  //楼市圈添加
  router.post('/api/addList', controller.home.addList)
};
